package cn.yzfy.common.model.dto;

import cn.yzfy.common.base.dto.BaseLongIdDTO;
import cn.yzfy.common.enums.GenderEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;


import java.io.Serial;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "编辑用户DTO")
public class EditUserDTO extends BaseLongIdDTO {
  
  @Serial
  private static final long serialVersionUID = -5329610125578371097L;
  
  /**
   * 用户名
   */
  @Schema(description = "用户名", example = "宇宙无敌的高手", requiredMode = Schema.RequiredMode.REQUIRED)
  private String username;
  
  /**
   * 性别
   */
  @Schema(description = "性别", example = "MALE")
  private GenderEnum gender;
  
  /**
   * 手机号
   */
  @Schema(description = "手机号", example = "17785306043")
  private String phone;
  
  /**
   * 头像url
   */
  @Schema(description = "头像url", example = "https://avatars.githubusercontent.com/u/46741472?v=4&size=256")
  private String avatarUrl;
  
  /**
   * 备注
   */
  @Schema(description = "备注")
  private String remark;
  
  /**
   * 启用状态
   */
  @Schema(description = "启用状态: true|false")
  private Boolean enable;
}